﻿using System;
using GN.Pay.TradeChannel.WeiXin.Response;
using GN.Pay.Utils;

namespace GN.Pay.TradeChannel.WeiXin.Request
{
    /// <summary>
    /// h5支付请求申请
    /// </summary>
    [Serializable]
    class H5PayRequest : APayRequest
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="channel"></param>
        /// <param name="order"></param>
        /// <param name="config"></param>
        public H5PayRequest(IChannel channel, IOrderPayApply order, WeiXinConfigure config)
            : base(channel, order, config)
        {
        }

        public override string Trade_Type
        {
            get
            {
                return "MWEB";
            }
        }

        protected override PayResponse CreatePayResponse(string xml)
        {
            return new H5PayResponse(xml);
        }
    }
}
